package com.woniuxy.entity;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.entity
 * @Author: LiTongMiao
 * @Date: 2022/2/10 17:03
 * @Description: TODO
 */
public class Food {
    @NotEmpty(message = "食物不能为空")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Food{" +
                "name='" + name + '\'' +
                '}';
    }
}
